package com.qo.qsdk.ui;

import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

public class BaseActivity extends AppCompatActivity implements IBaseActivity{

    private LoadingDialog mLoadingDialog;

    public void showLoading() {
        hideLoading();
        mLoadingDialog = new LoadingDialog(this, new LoadingDialog.LoadingDialogListener() {
            @Override
            public void onBackPressed() {
                //Toast.makeText(BaseActivity.this, "22", Toast.LENGTH_SHORT).show();
            }
        });
        mLoadingDialog.show();
    }

    public void hideLoading() {
        if (mLoadingDialog != null) {
            mLoadingDialog.dismiss();
        }
    }
}
